package com.yuw.control.common;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.nio.channels.ReadPendingException;

@WebServlet(name = "ServletCommon", value = "/jump")
public class ServletCommon extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // 获取请求的表单数据
        String pg = request.getParameter("pg");
        // 转发访问服务器站点安全目录 web-info 目录下的资源
        request.getRequestDispatcher(pg).forward(request, response);
    }


}
